#ifndef __MY_ARRAY__

#define __MY_ARRAY__

class Array {

	size_t size;
	size_t actualsize;
	int * data;
	
	static bool IOB;

public:
	
	Array();
		
	Array(Array const &);
	
	explicit Array(size_t);
	
	Array& operator= (Array const &);
	
	~Array();
	
	void push_back(int);
	
	static bool getIOB();
	
	int get(size_t index) const;
	
	size_t get_size() const;
	
	void set(size_t, int);
			
private:
	
	void increaseSize(size_t);
		
};

#endif